$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$width: 82.292vw;

.home {
  position: relative;
  width: 100%;

  .banner {
    width: 100%;
    position: relative;

    .swiper-container {
      width: 100%;

      .info {
        width: 100%;
        position: relative;

        .bg {
          img {
            width: 100%;
            display: block;
            object-fit: cover;
            max-height: 100vh;
          }
        }

        .text {
          position: absolute;
          left: 50%;
          width: $width;
          top: 50%;
          transform: translate(-50%, -50%);

          .p1 {
            font-size: $fontSize_90;
            color: white;
            font-weight: 600;
          }

          .p2 {
            font-size: $fontSize_40;
            font-weight: 300;
            color: white;
            margin: 0 0 3vw 0;
          }

          a {
            display: flex;
            align-items: center;

            p {
              color: #E11B00;
              font-size: $fontSize_24;
              font-weight: 600;
            }

            svg {
              display: block;
              transition: all 600ms;
              margin-left: 20px;
            }

            &:hover {
              svg {
                transform: translateX(20px);
              }
            }
          }
        }
      }
    }

    .swiper-pagination {
      position: absolute;
      right: calc((100% - 82.292vw) / 2);
      bottom: 5%;
      display: flex;

      .swiper-pagination-bullet {
        border-radius: 5px;
        width: 70px;
        height: 3px;
        background-color: rgba(255, 255, 255, .3);
        opacity: 1;
        margin: 0 5px;
        position: relative;
        &::before{
          content:'';
          display: block;
          position: absolute;
          left: 0;
          top:0;
          width: 0;
          height:100%;
          background-color: #E11B00;
        }
      }
      .swiper-pagination-bullet-active{
        &::before{
         animation: long  3s forwards linear;
        }
        @keyframes long {
          from{
            width: 0;
          }
          to{
            width: 100%;
          }
        }
      }
    }
  }

  .about {
    width: $width;
    margin: 8vw auto;

    .d1 {
      display: flex;
      justify-content: space-between;

      .l {
        width: 48%;

        .p1 {
          font-size: $fontSize_50;
          font-weight: 600;
        }

        a {
          display: flex;
          align-items: center;
          margin-top: 1vw;

          p {
            color: #E11B00;
            font-size: $fontSize_24;
            font-weight: 600;
          }

          svg {
            display: block;
            transition: all 600ms;
            margin-left: 20px;
          }

          &:hover {
            svg {
              transform: translateX(20px);
            }
          }
        }
      }

      .r {
        width: 50%;
        color: #666;
        font-size: $fontSize_22;
        line-height: 1.6;
      }
    }

    .d2 {
      width: 100%;
      margin: 2vw 0;
      overflow: hidden;

      img {
        width: 100%;
        display: block;
        max-height: 20vw;
        object-fit: cover;
        transition: all 600ms;
      }

      &:hover {
        img {
          transform: scale(1.05);
        }
      }
    }
  }

  .service {
    width: $width;
    margin: 8vw auto;
    display: flex;
    justify-content: space-between;

    .l {
      width: 32%;

      .p1 {
        font-size: $fontSize_50;
        font-weight: 600;
      }

      .des {
        color: #666;
        font-size: $fontSize_22;
        line-height: 1.6;
      }

      a {
        display: flex;
        align-items: center;
        margin-top: 3vw;

        p {
          color: #E11B00;
          font-size: $fontSize_24;
          font-weight: 600;
        }

        svg {
          display: block;
          transition: all 600ms;
          margin-left: 20px;
        }

        &:hover {
          svg {
            transform: translateX(20px);
          }
        }
      }
    }

    .r {
      width: 63%;
      position: relative;

      .pic {
        position: absolute;
        left: -5%;
        top: 0;
        width: 40%;
        overflow: hidden;
        z-index: 10;
        img {
          width: 100%;
          object-fit: cover;
          height: 26vw;
          transition: all 600ms;
        }

        &:hover {
          img {
            transform: scale(1.05);
          }
        }
      }

      .txt {
        background-color: #F7F7F7;
        padding: 3vw;
        margin-top: 11vw;

        .dt {
          margin-left: 40%;

          .p1 {
            display: flex;
            align-items: center;
            font-size: $fontSize_32;
            font-weight: 600;

            &::before {
              content: '';
              display: block;
              width: 8px;
              height: 8px;
              background-color: #F90D1B;
              margin-right: 10px;
            }
          }

          .des {
            color: #666;
            font-size: $fontSize_22;
            line-height: 1.6;
            margin-top: 10px;
          }
        }

        .dt:first-child {
          margin-bottom: 2vw;
        }
      }
    }
  }

  .tz {
    width: $width;
    margin: 8vw auto 5vw auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;

    .item {
      width: 32%;
      margin-bottom: 3vw;

      .p1 {
        font-size: $fontSize_50;
        font-weight: 600;
      }

      .icon {
        img {
          width: 4vw;
        }
      }

      .p2 {
        font-size: $fontSize_32;
        font-weight: 600;
        margin: 1vw 0 0.5vw 0;
      }

      .des {
        color: #666;
        font-size: $fontSize_22;
        font-weight: 300;
        line-height: 1.6;
      }

      a {
        display: flex;
        align-items: center;
        margin-top: 1vw;

        p {
          color: #E11B00;
          font-size: $fontSize_24;
          font-weight: 600;
        }

        svg {
          display: block;
          transition: all 600ms;
          margin-left: 20px;
        }

        &:hover {
          svg {
            transform: translateX(20px);
          }
        }
      }
    }
  }

  .news {
    background: #F7F7F7;
    padding: 6vw 0;

    .content {
      width: $width;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;

      .l {
        width: 35%;

        .p1 {
          font-size: $fontSize_50;
          font-weight: 600;
        }

        a {
          display: flex;
          align-items: center;
          margin-top: 1vw;

          p {
            color: #E11B00;
            font-size: $fontSize_24;
            font-weight: 600;
          }

          svg {
            display: block;
            transition: all 600ms;
            margin-left: 20px;
          }

          &:hover {
            svg {
              transform: translateX(20px);
            }
          }
        }
      }

      .r {
        width: 60%;

        a {
          display: flex;
          border-bottom: 1px solid #CFCFCF;
          padding: 1.5vw 0;
          align-items: center;
          position: relative;

          .time {
            color: #666;
            font-size: $fontSize_22;
          }

          .pt {
            color: #000;
            font-size: $fontSize_32;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            margin-left: 2vw;
            max-width: 75%;
          }

          .icon {
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
          }

          &:hover {
            .pt {
              font-weight: bold;
            }
          }
        }
      }
    }
  }

  .zzfw {
    width: 100%;
    margin: 8vw auto;

    .t1 {
      width: $width;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: flex-end;

      .p1 {
        font-size: $fontSize_50;
        font-weight: 600;
      }

      a {
        display: flex;
        align-items: center;
        p {
          color: #E11B00;
          font-size: $fontSize_24;
          font-weight: 600;
          transform:translateY(-10px);
        }

        svg {
          display: block;
          transition: all 600ms;
          margin-left: 20px;
          transform:translateY(-10px);
        }

        &:hover {
          svg {
            transform: translateY(-10px) translateX(20px);
          }
        }
      }
    }

    .allItems {
      margin: 2vw 0 0 calc((100% - 82.292vw) / 2);

      .swiper-container {
        width: 100%;

        a {
          display: block;

          .pic {
            overflow: hidden;

            img {
              width: 100%;
              height: 16vw;
              object-fit: cover;
              transition: all 600ms;
            }
          }

          .t {
            font-size: $fontSize_32;
            font-weight: 600;
            margin: 1vw 0;
          }

          .des {
            color: #666;
            font-size: $fontSize_22;
            line-height: 1.6;
          }

          &:hover {
            .pic {
              img {
                transform: scale(1.05);
              }
            }
          }
        }
      }
    }
  }

  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .banner{
      .swiper-container{
        .info{
          .text{
            width: 90%;
            .p1{
              font-size: 24px;
            }
            .p2{
              font-size: 18px;
            }
            a{
              p{
                font-size: 16px;
              }
            }
          }
        }
      }
      .swiper-pagination{
        display: flex;
        justify-content: center;
        right:5%;
        width: 90%;
      }
    }
    .about{
      width: 90%;
      margin: 20px auto;
      .d1{
        flex-direction: column;
        .l{
          width: 100%;
          .p1{
            font-size: 24px;
          }
          a{
            p{
              font-size: 16px;
            }
          }
        }
        .r{
          width: 100%;
          margin-top: 10px;
          font-size: 16px;
        }
      }
      .d2{
        margin: 20px 0;
        img{
          max-height: inherit;
        }
      }
    }
    .service{
      width: 90%;
      margin: 30px auto;
      flex-direction: column;
      .l{
        width: 100%;
        .p1{
          font-size: 24px;
        }
        a{
          p{
            font-size: 16px;
          }
        }
        .des{
          font-size: 14px;
          margin-top: 10px;
        }
      }
      .r{
        width: 100%;
        margin-top: 20px;
        .pic{
          position: static;
          width: 100%;
          img{
            height: auto;
          }
        }
        .txt{
          margin-top: 10px;
          padding: 15px;
          .dt{
            margin-left: 0;
            .p1{
              font-size: 18px;
            }
            .des{
              font-size: 14px;
            }
          }
        }
      }
    }
    .tz{
      width: 90%;
      margin: 30px auto 0 auto;
      .item{
        width: 100%;
        margin-bottom: 30px;
        .p1{
          font-size: 24px;
        }
        .p2{
          font-size: 18px;
          margin: 15px 0 10px 0;
        }
        .icon{
          img{
            width: 60px;
          }
        }
        .des{
          font-size: 14px;
        }
        a{
          p{
            font-size: 16px;
          }
        }
      }
    }
    .news{
      padding: 30px 0;
      .content{
        width: 90%;
        flex-direction: column;
        .l{
          width: 100%;
          .p1{
            font-size: 24px;
          }
          a{
            p{
              font-size: 16px;
            }
          }
        }
        .r{
          width: 100%;
          margin-top: 20px;
          a{
            padding: 15px 0;
            .time{
              font-size: 14px;
            }
            .pt{
              font-size: 16px;
              max-width: 70%;
            }
          }
        }
      }
    }
    .zzfw{
      margin: 30px auto 80px auto;
      .t1{
        width: 90%;
        .p1{
          font-size: 24px;
        }
        a{
          p{
            font-size: 16px;
          }
        }
      }
      .allItems{
      margin: 30px 0 0 5%;
      .swiper-container{
        a{
          .pic{
            img{
              height:120px;
            }
          }
          .t{
            font-size: 18px;
            margin: 10px 0;
          }
          .des{
            font-size: 14px;
          }
        }
      }
      }
    }
  }
}